<div class="page-wrapper">
    <!-- Page header -->
    <div class="page-header d-print-none">
      <div class="container-xl">
        <div class="row g-2 align-items-center">
          <div class="col">
            <h2 class="page-title">百家姓加密/解密</h2>
          </div>
        </div>
      </div>
    </div>
    <!-- Page body -->
  <div class="page-body">
    <div class="container-xl">
      <div class="card">
        <div class="row g-0">
            <div class="col-12 col-md-12 d-flex flex-column">
                <div class="card-body">
                    <div class="mb-3">
                        <label class="form-label">Input text to be encrypted/decrypted</label>
                        <div class="input-group input-group-flat">
                          <textarea class="form-control" rows="5" ng-model="inputText"></textarea>
                          <span class="input-group-text" ng-click="inputText=''">
                            <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M18 6l-12 12"></path><path d="M6 6l12 12"></path></svg>
                          </span>
                        </div>
                    </div>
                    <div class="mb-3">
                        <a href="javascript:void(0);"  class="btn btn-outline-primary" ng-click="encode()">
                            EnCode
                        </a>
                        <a href="javascript:void(0);" class="btn btn-outline-success" ng-click="decode()">
                            DeCode
                        </a>
                    </div>
                    <div class="mb-3">        
                        <div class="codeblock codeblock-copyable" ng-show="outputText != ''">
                            <pre class="prismjs language-plaintext">
                                <code class="language-plaintext" style="white-space:pre" ng-bind="outputText">                    
                                </code>
                            </pre>
                            <div class="codeblock-copy">
                                <button class="btn btn-icon btn-dark" ng-click="copy()" ng-show="!copied">
                                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-clipboard icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path d="M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2"></path><path d="M9 3m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v0a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z"></path></svg>
                                </button>
                                <button class="btn btn-icon btn-green" ng-show="copied">
                                    <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-check" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l5 5l10 -10" /></svg>
                                </button>
                            </div>
                        </div>
                    </div>            
                </div>            
            </div>
        </div>
      </div>
  </div>
</div>